package com.generator.service.courseStudy.impl;

import com.generator.dao.courseStudy.CourseStudyDao;
import com.generator.entity.courseStudy.CourseStudy;
import com.generator.service.courseStudy.CourseStudyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CourseStudyServiceBean implements CourseStudyService {

    @Autowired
    private CourseStudyDao courseStudyDao;

    @Override
    public List<CourseStudy> findAllCourseStudies() {
        return courseStudyDao.findAllCourseStudies();
    }
}
